import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'marryPipe',
})
export class MarryPipe implements PipeTransform {

    transform(status) {
        let mar='-';
        switch (status) {
            case 1:
                mar= '已婚';
                break
            case 2:
                mar=  '未婚';
                break
            case 3:
                mar=  '其他';
                break
            default:
                mar=  '-';
                break
        }
        return mar;
    }
}
